﻿using BCEntity.TMS.RedPacket.RedPacketSupplement;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace BCData.TMS.RedPacket.RedPacketSupplement
{
    public interface IRedPacketSupplementData
    {
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="redPacketSupplementId"></param>
        /// <returns></returns>
        Task<bool> DeleteAsync(long redPacketSupplementId);
        /// <summary>
        /// 获取
        /// </summary>
        /// <param name="redPacketSupplementId"></param>
        /// <returns></returns>
        Task<RedPacketSupplementEntity> GetEntityAsync(long redPacketSupplementId);
        /// <summary>
        /// 获取列表
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        Task<(IEnumerable<RedPacketSupplementEntity>, int)> GetListAsync(long agentRecordId, long? redPacketId, int pageIndex, int pageSize);
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<RedPacketSupplementEntity> InsertAsync(RedPacketSupplementEntity entity);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<RedPacketSupplementEntity> UpdateAsync(RedPacketSupplementEntity entity);
    }
}